package cn.edu.lingnan.tourism.pojo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Date;


/**
 * @author liyinglai
 */
@Data
@Table(name = "tab_user")
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer uid;
    private String username;
    @JSONField(serialize = false)
    private String password;
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String sex;
    private String telephone;
    private String email;
    private String status;
    private String code;
}
